﻿namespace Microsoft.AspNetCore.App
{
    /// <summary>
    /// 终结点集合
    /// </summary>
    public class EndpointDataSource
    {
        private List<Endpoint> _endpoints = new List<Endpoint>();

        public EndpointDataSource()
        {

        }

        public void AddEndpoint(Endpoint endpoint)
        {
            _endpoints.Add(endpoint);
        }

        public IReadOnlyList<Endpoint> GetEndpoints() => _endpoints;
    }
}
